<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="./../layout/layout_egresado.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:h="http://xmlns.jcp.org/jsf/html">

    <ui:define name="content">

        <p:panel header="Cambiar contraseña">
            <h:form>
                <p:growl id="growl_213" for="growl_clave" sticky="true" showDetail="true" life="1000"/>
                <p:panelGrid columns="2">
                    <p:outputLabel value="Clave actual: " />
                    <p:inputText value="#{cambiarClave.claveActual}" />

                    <p:outputLabel value="Nueva Clave: " />
                    <p:inputText value="#{cambiarClave.nuevaClave1}" />

                    <p:outputLabel value="Repita Clave: " />
                    <p:inputText value="#{cambiarClave.nuevaClave2}" />

                    <f:facet name="footer">                                        
                        <p:commandButton value="Registrar cambio" icon="ui-icon-check"
                                         action="#{cambiarClave.cambiarNuevaClave}" update="growl_213"
                                         />
                    </f:facet>

                </p:panelGrid>
            </h:form>
        </p:panel>
    </ui:define>

</ui:composition>
